package com.youxin.cpcenter.model;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;


@JsonInclude(JsonInclude.Include.NON_NULL)
public class TbMemberInfo{
   
	 /**  */
    private Long id;

    /** 会员唯一id */
    private String uid;

    /** UUID 公司名称+职位+手机号码+真实姓名生成UUID */
    private String uuid;

    /** 用户名 */
    private String username;

    /** 真实姓名 */
    private String realname;

    /** 密码加密盐 */
    @JsonIgnore
    private String salt;

    /** 微信昵称 */
    private String nickname;

    /** 密码 */
    @JsonIgnore
    private String password;

    /** 系统初始化密码 */
    @JsonIgnore
    private String sysPassword;

    /** 邮箱 */
    private String email;

    /** 微信 */
    private String wx;

    /** 手机 */
    private String phone;

    /** 固定电话 */
    private String tel;

    /** 备用手机 */
    @JsonProperty("backup_phone")
    private String backupPhone;

    /** 头像 */
    @JsonProperty("logo_url")
    private String logoUrl;

    /** 状态 0正常 1禁用 */
    private Short status;

    /** 1:男 2:女 */
    private Short sex;

    /** 企业自定义UID */
    @JsonIgnore
    private String companyUid;

    /** 企业名 */
    @JsonProperty("company_name")
    private String companyName;

    /** 微信openID */
    @JsonIgnore
    private String openId;

    /** 微信Union_id */
    @JsonIgnore
    private String unionId;

    /** 注册类型  1邮箱 2手机 3管理员添加 4微信 */
    @JsonIgnore
    private Short registerType;

    /** 职位 */
    private String position;

    /** 所在地(省，市，区) */
    private String address;

    /** 所在地 */
    private String place;

    /** 所处行业(文本) */
    private String industry;

    /** QQ */
    private Long qq;

    /** 是否删除 0 正常 1 删除 */
    @JsonProperty("is_delete")
    private Short isDelete;

    /** 会员身份识别 1:注册用户（未上传名片） 2:已上传名片,待审核 3:名片已通过审核 4:名片审核失败 */
    private Short identity;

    /** 是否开通会员 0未开通 1个人VIP 2 企业VIP */
    private Short isVip;

    /** 积分 */
    private Integer score;

    /** 账户余额(可为负数） */
    private BigDecimal account;

    /** 活跃度： 最近半个月登录：70-100% 最近2个月登录：30-70%  2个月以上登录：小于30% */
    @JsonProperty("active_degree")
    private Float activeDegree;

    /** 添加时间 */
    @JsonIgnore
    private Integer addTime;

    /** 更新时间 */
    @JsonIgnore
    private Integer updateTime;

    /** 会员关联企业 */
    @JsonProperty("ent_member_id")
    private Long entMemberId;
    
    /** 企业认证ID */
    @JsonProperty("ent_identify_id")    
    private Long entIdentifyId;

    
    public Long getEntIdentifyId() {
		return entIdentifyId;
	}

	public void setEntIdentifyId(Long entIdentifyId) {
		this.entIdentifyId = entIdentifyId;
	}

	public Long getEntMemberId() {
		return entMemberId;
	}

	public void setEntMemberId(Long entMemberId) {
		this.entMemberId = entMemberId;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid == null ? null : uid.trim();
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getSysPassword() {
        return sysPassword;
    }

    public void setSysPassword(String sysPassword) {
        this.sysPassword = sysPassword == null ? null : sysPassword.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx == null ? null : wx.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getBackupPhone() {
        return backupPhone;
    }

    public void setBackupPhone(String backupPhone) {
        this.backupPhone = backupPhone == null ? null : backupPhone.trim();
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl == null ? null : logoUrl.trim();
    }

   
   
    public String getCompanyUid() {
        return companyUid;
    }

    public void setCompanyUid(String companyUid) {
        this.companyUid = companyUid == null ? null : companyUid.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId == null ? null : openId.trim();
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId == null ? null : unionId.trim();
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place == null ? null : place.trim();
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry == null ? null : industry.trim();
    }

    public Long getQq() {
        return qq;
    }

    public void setQq(Long qq) {
        this.qq = qq;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public BigDecimal getAccount() {
        return account;
    }

    public void setAccount(BigDecimal account) {
        this.account = account;
    }

    public Float getActiveDegree() {
        return activeDegree;
    }

    public void setActiveDegree(Float activeDegree) {
        this.activeDegree = activeDegree;
    }

    public Integer getAddTime() {
        return addTime;
    }

    public void setAddTime(Integer addTime) {
        this.addTime = addTime;
    }

    public Integer getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	public Short getSex() {
		return sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	public Short getRegisterType() {
		return registerType;
	}

	public void setRegisterType(Short registerType) {
		this.registerType = registerType;
	}

	public Short getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Short isDelete) {
		this.isDelete = isDelete;
	}

	public Short getIdentity() {
		return identity;
	}

	public void setIdentity(Short identity) {
		this.identity = identity;
	}

	public Short getIsVip() {
		return isVip;
	}

	public void setIsVip(Short isVip) {
		this.isVip = isVip;
	}
	/**
	 * 是否已经认证
	 * @description 
	 * @return
	 */
	public boolean isEntIdentity()
	{
		return entMemberId.longValue()>0L&&entIdentifyId.longValue()>0L;
	}
    
}